//
//  HACChartCompenent.h
//  Pods
//
//  Created by Hotacool on 2017/8/30.
//
//

#import <UIKit/UIKit.h>
#import "HACChartDefine.h"

@interface HACChartComponent : NSObject
/** enable */
@property (nonatomic, assign) BOOL enable;
/** 编号标示，用于区分DrawingItem数组 */
@property (nonatomic) NSInteger index;
/** 队列中item的位置，开始，结束，正中间，其它 */
@property (nonatomic) QueueLocation queueLocation;
/** 点的位置 */
@property (nonatomic) CGPoint point;
/** 涨跌类型 */
@property (nonatomic) DrawingValueType valueType;

/** 线条 */
@property (nonatomic) CGLine line;
/** 设置虚线格式 {1.0, 1.0, ...} */
@property (nonatomic) NSArray *dashLengths;
/** 线条颜色 */
@property (nonatomic, strong) UIColor *lineColor;
/** 填充颜色 */
@property (nonatomic, strong) UIColor *fillColor;
/** 线条粗细值 */
@property (nonatomic) CGFloat lineBolder;

/** 附带文字 */
@property (nonatomic, copy) NSString *text;
/** 文字颜色 */
@property (nonatomic, strong) UIColor *textColor;
/** 文字字体大小 */
@property (nonatomic, strong) UIFont *textFont;
/** 文字frame */
@property (nonatomic) CGRect textFrame;
/** 文字对齐 */
@property (nonatomic) NSTextAlignment textAlignment;
@end
